﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace Trust.Casas.Web.Models
{
    public class MapData
    {
        public string MapName { get; set; }

        public PointData InitialPosition { get; set; }

        public IEnumerable<MarkerData> Markers { get; set; }
    }

    public class PointData
    {
        public PointData(double latitude, double longitude)
        {
            this.Latitude = latitude;
            this.Longitude = longitude;
        }

        public PointData()
            : this(0, 0)
        {

        }

        public double Latitude { get; set; }

        public double Longitude { get; set; }
    }

    public class MarkerData : PointData
    {
        public MarkerData(double latitude, double longitude)
            : base(latitude, longitude)
        {

        }

        public MarkerData()
            : this(0, 0)
        {

        }

        public string Name { get; set; }

        public string Description { get; set; }

    }
}